package com.zxk.blog.feign;

import com.zxk.core.common.util.JsonData;
import com.zxk.core.common.util.R;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class CrawlerEsFeignServiceImpl implements CrawlerEsFeignService {
    @Override
    public JsonData getEsDada(String index, String field, String keyword, Integer pageNo, Integer pageSize) {
        return JsonData.buildError("服务降级");
    }

    @Override
    public R searchNewsByCondition(Map<String, Object> condition) {
        return R.error();
    }
}
